find_package(Automoc4 REQUIRED)

include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})


 
set( libwormhole_LIB_SRCS
	backendinterface.cpp
	snapshot.cpp
)
set( libwormhole_LIB_HDRS
  backendinterface.h
  snapshot.h
  wormhole_export.h
 )

 
kde4_add_library( libwormhole  SHARED ${libwormhole_LIB_SRCS} )
 
target_link_libraries( libwormhole
  ${KDE4_KDECORE_LIBS}
)
set_target_properties( libwormhole
  PROPERTIES VERSION 0.0.0 SOVERSION 1
)
 
install( TARGETS libwormhole  ${INSTALL_TARGETS_DEFAULT_ARGS} )

install( FILES ${libwormhole_LIB_HDRS}
  DESTINATION ${INCLUDE_INSTALL_DIR}/libwormhole
  COMPONENT Devel
)
